import request from '@/utils/request'


export function findList(params) {
    return request({
        url: '/${entity.code}/list',
        method: 'get',
        params:params
    })
}

export function deleteOne(id) {
    return request({
        url: '/${entity.code}/'+id,
        method: 'delete',
    })
}

export function getDetail(id) {
    return request({
        url: '/${entity.code}/detail/'+id,
        method: 'get'
    })
}

export function saveOne(data) {
    return request({
        url: '/${entity.code}',
        method: 'post',
        data:data
    })
}


